package com.kamistoat.meimeichat.meimeichatserverapplication.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.PageUtils;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.Query;

import com.kamistoat.meimeichat.meimeichatserverapplication.dao.MmcUserGroupDao;
import com.kamistoat.meimeichat.meimeichatserverapplication.entity.MmcUserGroupEntity;
import com.kamistoat.meimeichat.meimeichatserverapplication.service.MmcUserGroupService;


@Service("mmcUserGroupService")
public class MmcUserGroupServiceImpl extends ServiceImpl<MmcUserGroupDao, MmcUserGroupEntity> implements MmcUserGroupService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MmcUserGroupEntity> page = this.page(
                new Query<MmcUserGroupEntity>().getPage(params),
                new QueryWrapper<MmcUserGroupEntity>()
        );

        return new PageUtils(page);
    }

}